/// 当前页结果集
class WithdrawOrderPageForPlatformResponseDto {
  /// 订单号
  final String? orderNum;
  /// 银行
  final String? bankCardType;
  /// 银行账号
  final String? bankCard;
  /// 银行卡对应的名字
  final String? accountName;
  /// 提现金额，单位奈拉
  final String? withdrawAmountNaira;
  /// 分配的代理团队名称
  final String? teamName;
  /// 财务报价
  final String? rate;
  /// 订单所得金额，单位美元
  final String? withdrawAmountDollar;
  /// 手续费
  final String? fee;
  /// 团队余额，单位美元
  final String? currentBalance;
  /// 申请时间
  final String? createTime;
  /// 提现用户
  final String? withdrawUser;
  /// 赎回率
  final String? redemptionRate;
  /// 审批备注
  final String? remark;
  /// 提现结果，1通过，0拒绝，2未处理
  final int? withdrawResult;
  /// 凭证访问地址
  final String? proofUrl;

  WithdrawOrderPageForPlatformResponseDto({
    this.orderNum,
    this.bankCardType,
    this.bankCard,
    this.accountName,
    this.withdrawAmountNaira,
    this.teamName,
    this.rate,
    this.withdrawAmountDollar,
    this.fee,
    this.currentBalance,
    this.createTime,
    this.withdrawUser,
    this.redemptionRate,
    this.remark,
    this.withdrawResult,
    this.proofUrl,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (orderNum != null) data['orderNum'] = orderNum;
    if (bankCardType != null) data['bankCardType'] = bankCardType;
    if (bankCard != null) data['bankCard'] = bankCard;
    if (accountName != null) data['accountName'] = accountName;
    if (withdrawAmountNaira != null) data['withdrawAmountNaira'] = withdrawAmountNaira;
    if (teamName != null) data['teamName'] = teamName;
    if (rate != null) data['rate'] = rate;
    if (withdrawAmountDollar != null) data['withdrawAmountDollar'] = withdrawAmountDollar;
    if (fee != null) data['fee'] = fee;
    if (currentBalance != null) data['currentBalance'] = currentBalance;
    if (createTime != null) data['createTime'] = createTime;
    if (withdrawUser != null) data['withdrawUser'] = withdrawUser;
    if (redemptionRate != null) data['redemptionRate'] = redemptionRate;
    if (remark != null) data['remark'] = remark;
    if (withdrawResult != null) data['withdrawResult'] = withdrawResult;
    if (proofUrl != null) data['proofUrl'] = proofUrl;
    return data;
  }

  factory WithdrawOrderPageForPlatformResponseDto.fromJson(Map<String, dynamic> json) {
    return WithdrawOrderPageForPlatformResponseDto(
      orderNum: json['orderNum'],
      bankCardType: json['bankCardType'],
      bankCard: json['bankCard'],
      accountName: json['accountName'],
      withdrawAmountNaira: json['withdrawAmountNaira'],
      teamName: json['teamName'],
      rate: json['rate'],
      withdrawAmountDollar: json['withdrawAmountDollar'],
      fee: json['fee'],
      currentBalance: json['currentBalance'],
      createTime: json['createTime'],
      withdrawUser: json['withdrawUser'],
      redemptionRate: json['redemptionRate'],
      remark: json['remark'],
      withdrawResult: json['withdrawResult'],
      proofUrl: json['proofUrl'],
    );
  }
}